package com.github.pig.sales.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 跟进团队
 * </p>
 *
 * @author andrew
 * @since 2018-06-23
 */
@TableName("sales_follow_up_team")
public class SalesFollowUpTeam extends Model<SalesFollowUpTeam> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "fid", type = IdType.AUTO)
    private Integer fid;
    /**
     * 用户
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 部门
     */
    @TableField("dept_id")
    private Integer deptId;
    /**
     * 直接领导
     */
    @TableField("leader_id")
    private Integer leaderId;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 删除
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 修改时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Integer getFid() {
        return fid;
    }

    public void setFid(Integer fid) {
        this.fid = fid;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getLeaderId() {
        return leaderId;
    }

    public void setLeaderId(Integer leaderId) {
        this.leaderId = leaderId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.fid;
    }

    @Override
    public String toString() {
        return "SalesFollowUpTeam{" +
        ", fid=" + fid +
        ", userId=" + userId +
        ", deptId=" + deptId +
        ", leaderId=" + leaderId +
        ", createTime=" + createTime +
        ", delFlag=" + delFlag +
        ", updateTime=" + updateTime +
        "}";
    }
}
